Repository navigation
Raise solana-compute-budget to the version kite 0.7 builds against - #221
Open
mikemaccana wants to merge 1 commit into
Open
mikemaccana wants to merge 1 commit into
mikemaccana wants to merge 1 commit into
Conversation
Six Anchor v1 crates declared `solana-compute-budget = "4.2"` under a comment saying it was the same version solana-kite 0.6 builds against. #219 moved every example to kite 0.7.0, which declares `solana-compute-budget ^4.3`, so both the pin and its stated reason were describing a kite release no longer in the tree. Nothing was broken by it: `^4.2` and `^4.3` unify to one 4.x, and all six resolve to 4.3.2 either way, which is why their suites pass on main. What was wrong is the floor. A declared floor below what kite asks for leaves room for a lockfile or a `cargo update --precise` to drop under the version kite supports - the same hazard the litesvm floor bump in #218 closed. The three examples that have an Anchor v2 counterpart with this pin - hello-solana, options, order-book - already declare 4.3 there, since the v2 copies moved to kite 0.7 first. This brings the v1 copies to the same value, so the nine declarations across the repository now read alike. CONTRIBUTING.md said the two Anchor copies send transactions "through solana-kite: 0.6 for Anchor v1, 0.7 for Anchor v2". It is 0.7 for both. Verified by resolution, since that is what changed: with each project's lockfile deleted and regenerated, all six resolve a single solana-compute-budget 4.3.2 alongside kite 0.7.0. compression/cnft-burn and basics/hello-solana then build and pass end to end. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YTTjefTz2Kbj8t5qg77kXg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Six Anchor v1 crates declared
solana-compute-budget = "4.2"under a comment saying it was "thesame version solana-kite 0.6 builds against".
#219 moved every example to kite
0.7.0, which declares
solana-compute-budget ^4.3, so both the pin and its stated reason describeda kite release that is no longer in the tree.
^0.16.0^4.2^0.18.1^4.3Nothing was broken — the floor was
^4.2and^4.3unify to one 4.x, and all six resolve to 4.3.2 either way, which is why theirsuites pass on
maintoday. What was wrong is the declared floor: sitting below what kite asks forleaves room for a lockfile or a
cargo update --preciseto drop under the version kite supports.That is the same hazard the litesvm floor bump in
#218 closed, and the same reason
that bump was the load-bearing part of it rather than tidiness.
The three examples with an Anchor v2 counterpart carrying this pin —
hello-solana,options,order-book— already declare 4.3 there, because the v2 copies moved to kite 0.7 first. So 4.3is not a new choice; this brings the v1 copies to the value their v2 siblings have had, and the nine
declarations across the repository now read alike.
Files
basics/hello-solana/anchor-v1/programs/hello-solana/Cargo.tomlfinance/options/anchor-v1/programs/options/Cargo.tomlfinance/order-book/anchor-v1/programs/order-book/Cargo.tomlcompression/cnft-burn/anchor-v1/programs/cnft-burn/Cargo.tomlcompression/cutils/anchor-v1/programs/cutils/Cargo.tomlcompression/cnft-vault/anchor-v1/programs/cnft-vault/Cargo.tomlEach comment now names kite 0.7 rather than 0.6.
CONTRIBUTING.mdsaid the two Anchor copies send transactions "throughsolana-kite: 0.6 for Anchorv1, 0.7 for Anchor v2". It is 0.7 for both.
Testing
A declaration change that resolves to the same version, so the risk is a resolution surprise rather
than a behaviour change — resolution is what I checked. With each project's untracked
Cargo.lockdeleted and regenerated:
basics/hello-solana/anchor-v1finance/options/anchor-v1finance/order-book/anchor-v1compression/cnft-burn/anchor-v1compression/cutils/anchor-v1compression/cnft-vault/anchor-v1One version of each, in all six.
compression/cnft-burn/anchor-v1(2 tests) andbasics/hello-solana/anchor-v1(1 test) then build withcargo build-sbfand pass end to end. CIcovers the other four.
CHANGELOG.mdis left alone — its kite 0.6.1 and litesvm 0.16.0 references are history and correct.Generated by Claude Code